import openpyxl

wb = openpyxl.load_workbook('00.Database.xlsx')
sheet2 = wb["表目录"]

# 获取单元格内容
# 方式一
print('方法一')

for row in sheet2.values:
    print(*row)
print('=========================')
# 方式二
print('方法二')
for row in sheet2.rows:
    print(*[cell.value for cell in row])
print('=========================')
# 方式三
print('方法三')
for row in sheet2.iter_rows():
    print(*[cell.value for cell in row])
print('=========================')
# 方式四(最复杂，最原始)
print('方法四')
for i in range(sheet2.min_row, sheet2.max_row + 1):
    for j in range(sheet2.min_column, sheet2.max_column + 1):
        print(sheet2.cell(row=i, column=j).value, end=' ')
    print()
